import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取证券管理列表
  getManageList: (query) => api.post(`${config.interfaces.type1}holdInfo/findAll`, query),
  // 获取证券冻结解冻列表
  getUnfreezeList: (query) => api.post(`${config.interfaces.type1}holdInfo/findAllFrost`, query),
  // 按钮组合权限
  getJurisdiction: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/find-portfolio-permission/${query.id}`, {}),
  // 证券调整
  adjustSecurity: (query) => api.post(`${config.interfaces.type1}holdInfo/operate`, query),
  // 新增持仓
  addNew: (query) => api.post(`${config.interfaces.type1}holdInfo/operatesave`, query),
  // 获取划出证券代码
  getTransfer: (query) => api.post(`${config.interfaces.type1}holdInfo/queryZq`, query),
  // 划出证券
  outSecurity: (query) => api.post(`${config.interfaces.type1}holdInfo/operate`, query),
  // 划入证券
  inSecurity: (query) => api.post(`${config.interfaces.type1}holdInfo/operate2`, query),
};
